package com.sljy.hzk.entity;

import android.widget.ProgressBar;

import java.util.List;

/**
 * Created  on 2018/7/2 0002
 *
 * @author 唐开阔
 * @describe 任务
 */
public class TaskEntity {

    /**
     * date : 2018-07-05
     * persons : [{"name":"甄海鹏","workType":"DCS操作","tel":"18935588199"}]
     * hours :
     * flag : 0
     * partition : 华大健康-华大分区2-工种测试
     * workPlanId : 5
     * num : 1人
     * title : 巡检标题
     */

    private String date;
    private String hours;
    private int flag;
    private String partition;
    private int workPlanId;
    private String num;
    private int id;
    private int dangerId;
    private int templateId;
    private boolean danger;
    private int appSwitch;
    private String title;
    private List<PersonsBean> persons;

    public int getAppSwitch() {
        return appSwitch;
    }

    public void setAppSwitch(int appSwitch) {
        this.appSwitch = appSwitch;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getHours() {
        return hours;
    }

    public void setHours(String hours) {
        this.hours = hours;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getPartition() {
        return partition;
    }

    public void setPartition(String partition) {
        this.partition = partition;
    }

    public int getWorkPlanId() {
        return workPlanId;
    }

    public void setWorkPlanId(int workPlanId) {
        this.workPlanId = workPlanId;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<PersonsBean> getPersons() {
        return persons;
    }

    public void setPersons(List<PersonsBean> persons) {
        this.persons = persons;
    }

    public int getDangerId() {
        return dangerId;
    }

    public void setDangerId(int dangerId) {
        this.dangerId = dangerId;
    }

    public int getTemplateId() {
        return templateId;
    }

    public void setTemplateId(int templateId) {
        this.templateId = templateId;
    }

    public boolean isDanger() {
        return danger;
    }

    public void setDanger(boolean danger) {
        this.danger = danger;
    }

    public static class PersonsBean {
        /**
         * name : 甄海鹏
         * workType : DCS操作
         * tel : 18935588199
         */

        private String name;
        private String  workType ;
        private String tel;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getWorkType() {
            return workType;
        }

        public void setWorkType(String workType) {
            this.workType = workType;
        }

        public String getTel() {
            return tel;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }
    }
}
